import { MockMethod } from 'vite-plugin-mock'

export default <MockMethod[]>[
  {
    url: '/dict/data/getTypeList',
    method: 'post',
    response: () => {
      return {
        code: 200,
        data: {
          sys_user_sex: [
            {
              createBy: 'admin',
              createTime: '2021-08-02 15:33:28',
              cssClass: '',
              default: true,
              dictCode: 1,
              dictLabel: '男',
              dictSort: 1,
              dictType: 'sys_user_sex',
              dictValue: '0',
              isDefault: 'Y',
              listClass: '',
              params: {},
              remark: '性别男',
              search: null,
              status: '0',
              updateBy: null,
              updateTime: null
            },
            {
              createBy: 'admin',
              createTime: '2021-08-02 15:33:28',
              cssClass: '',
              default: false,
              dictCode: 2,
              dictLabel: '女',
              dictSort: 2,
              dictType: 'sys_user_sex',
              dictValue: '1',
              isDefault: 'N',
              listClass: '',
              params: {},
              remark: '性别女',
              search: null,
              status: '0',
              updateBy: null,
              updateTime: null
            }
          ],
          audit_status: [
            {
              createBy: 'admin',
              createTime: '2021-10-30 15:08:16',
              cssClass: 'status--danger',
              default: false,
              dictCode: 101,
              dictLabel: '审核不通过',
              dictSort: 1,
              dictType: 'audit_status',
              dictValue: '-1',
              isDefault: 'N',
              listClass: 'default',
              params: {},
              remark: null,
              search: null,
              status: '0',
              updateBy: null,
              updateTime: null
            },
            {
              createBy: 'admin',
              createTime: '2021-10-30 15:08:24',
              cssClass: 'status--warning',
              default: false,
              dictCode: 102,
              dictLabel: '待审核',
              dictSort: 2,
              dictType: 'audit_status',
              dictValue: '0',
              isDefault: 'N',
              listClass: 'default',
              params: {},
              remark: null,
              search: null,
              status: '0',
              updateBy: null,
              updateTime: null
            },
            {
              createBy: 'admin',
              createTime: '2021-10-30 15:08:36',
              cssClass: 'status--success',
              default: false,
              dictCode: 103,
              dictLabel: '审核通过',
              dictSort: 3,
              dictType: 'audit_status',
              dictValue: '1',
              isDefault: 'N',
              listClass: 'default',
              params: {},
              remark: null,
              search: null,
              status: '0',
              updateBy: null,
              updateTime: null
            }
          ]
        },
        msg: '操作成功'
      }
    }
  }
]
